package com.baizhiedu;

import com.baizhiedu.bean.Customer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

/**
 * 功能：
 * 作者：HZj
 * 日期：2025/1/5 20:39
 */
@Configuration
@ComponentScan(basePackages = "com.baizhiedu.bean")
@ImportResource("applicationContext.xml")
public class AppConfig3 {

    @Bean
    public Customer customer(){
        Customer customer = new Customer();
        customer.setId(10);
        customer.setName("xiaojr");
        return customer;
    }
}
